package cn.jiahua.hospital.mapper;

import cn.jiahua.hospital.dto.OrderDto;
import cn.jiahua.hospital.dto.UserDto;
import cn.jiahua.hospital.dto.YOrderDto;
import cn.jiahua.hospital.pojo.YOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface YOrderMapper {


    public YOrder getYOrderById(@Param(value = "id") Integer id);

    public YOrderDto getYOrderById_hospital(@Param(value = "id") Integer id, @Param(value = "hospitalId") Integer hospitalId);

    public List<YOrder> getYOrderListByMap(Map<String, Object> param);

    public List<YOrderDto> getYOrderListByMap_hospital(Map<String, Object> param);

    public Integer getYOrderCountByMap(Map<String, Object> param);

    public Integer getYOrderCountByMap_hospital(Map<String, Object> param);

    public Integer insertYOrder(YOrder yOrder);

    public Integer updateYOrder(YOrder yOrder);

    public Integer deleteYOrderById(@Param(value = "id") Integer id);

    public Integer batchDeleteYOrder(Map<String, List<String>> params);

    public List<YOrder> getYOrderListByMapOfUser(Map<String, Object> param);

    public Integer getYOrderCountByMapOfUser(Map<String, Object> param);

    public YOrder  getYOrderById_orderid(@Param(value = "orderid") String orderid);

    public OrderDto getOrderInfoByOrderId(@Param(value = "orderId")String orderId);

    public List<UserDto> getOrderByUserId(@Param(value="userId")Integer userId);
}
